home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3c / swab.z / swab
Encoding:
Text File  |  1998-10-20  |  1.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SSSSWWWWAAAABBBB((((3333CCCC))))                                                              SSSSWWWWAAAABBBB((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      swab - swap bytes
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddlllliiiibbbb....hhhh>>>>
  13.  
  14.      vvvvooooiiiidddd sssswwwwaaaabbbb((((cccchhhhaaaarrrr ****ffffrrrroooommmm,,,, cccchhhhaaaarrrr ****ttttoooo,,,, iiiinnnntttt nnnnbbbbyyyytttteeeessss))));;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _s_w_a_b copies _n_b_y_t_e_s bytes pointed to by _f_r_o_m to the array pointed to by
  18.      _t_o, exchanging adjacent even and odd bytes.  _N_b_y_t_e_s should be even and
  19.      non-negative.  If _n_b_y_t_e_s is odd and positive _s_w_a_b uses _n_b_y_t_e_s-1 instead.
  20.      If _n_b_y_t_e_s is negative, _s_w_a_b does nothing.
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.